package com.longrise.common.widget;

import android.content.Context;
import android.os.Bundle;
import android.view.KeyEvent;

import com.longrise.common.R;
import com.longrise.common.utils.AppBaseDialog;


public class WaitDialog extends AppBaseDialog {

    public WaitDialog(Context context) {
        super(context);
    }

    @Override
    public int getLayoutResourceId(Bundle bundle) {
        return R.layout.byjk_loading_dialog;
    }

    @Override
    public void init() {
    }

    @Override
    public void regEvent() {
    }

    @Override
    public void dismiss() {
        super.dismiss();
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            dismiss();
        }
        return super.onKeyDown(keyCode, event);
    }
}
